package com.juc.blockingQueue.LinkedTransferQueue.transfer1;

public class Test2 {

	public static void main(String[] args) throws InterruptedException {
		MyServiceB service =new MyServiceB();
		ThreadB2 b = new ThreadB2(service);
		b.setName("b");
		b.start();
		Thread.sleep(3000);
		System.out.println("队列中的元素个数为 ：  " + service.queue.size());
	}
}
